<?php
/*
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-02-04 16:53:56
 * @LastEditTime: 2023-11-06 16:00:18
 * @LastEditors: 孙开源 && sunkaiyuan@namenode.cn
 * @Description: 
 */

namespace App\Http\Services\System;

use App\Events\UploadFileEvent;

use App\Http\Services\Service;
use App\Repositories\InstorageWayRepository;

class InstorageWayService extends Service
    {

    public function __construct(InstorageWayRepository $repository)
        {
        $this->repository = $repository;
        }

    public function list()
        {
        $data = $this->repository->condition(request())->getGrid();
        return $data;
        }
    protected function save()
        {
        return $this->repository->autosave(request()->toArray());
        }
    protected function delete()
        {
        return $this->repository->autodelete($this->getRequestIds());
        }
    }
